<?php

namespace app\modules\lenders\models;

use Yii;

/**
 * This is the model class for table "rah_bankkoukuan".
 *
 * @property integer $kouKuanID
 * @property string $BankCode
 * @property string $userName
 * @property double $kouKuanAmt
 * @property string $kouKuanDate
 * @property string $kouKuanResult
 * @property string $failReason
 * @property string $uploadUser
 * @property string $uploadTime
 * @property integer $isProcessed
 * @property string $uploadFilePath
 * @property string $processedResult
 * @property integer $excelID
 */
class Bankkoukuan extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'rah_bankkoukuan';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['kouKuanAmt'], 'number'],
            [['kouKuanDate', 'uploadTime'], 'safe'],
            [['isProcessed', 'excelID'], 'integer'],
            [['BankCode'], 'string', 'max' => 30],
            [['userName', 'kouKuanResult', 'uploadUser', 'processedResult'], 'string', 'max' => 20],
            [['failReason'], 'string', 'max' => 50],
            [['uploadFilePath'], 'string', 'max' => 200],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'kouKuanID' => 'Kou Kuan ID',
            'BankCode' => 'Bank Code',
            'userName' => 'User Name',
            'kouKuanAmt' => 'Kou Kuan Amt',
            'kouKuanDate' => 'Kou Kuan Date',
            'kouKuanResult' => 'Kou Kuan Result',
            'failReason' => 'Fail Reason',
            'uploadUser' => 'Upload User',
            'uploadTime' => 'Upload Time',
            'isProcessed' => 'Is Processed',
            'uploadFilePath' => 'Upload File Path',
            'processedResult' => 'Processed Result',
            'excelID' => 'Excel ID',
        ];
    }
}
